<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\City;
use Illuminate\Http\Request;

class CityController extends BaseController
{
    public function getCityDataById(Request $request){


        $id=$request->get('id');
        $cityData=City::where('pid',$id)->select('id','name')->get();

        return $this->writeJson(0,$cityData,"success");
    }
}
